home *** CD-ROM | disk | FTP | other *** search
- _root.showButtons(false);
- _root.replayos._alpha = 30;
- _root.gagnos.position = 0;
- _root.gagnos.total = 0;
- _root.aidetimestart = -1;
- initDone = false;
- openDone = false;
- parcoursArray = new Array();
- index = 0;
- demandeParcours = new LoadVars();
- demandeParcours.action = "allparcours";
- demandeParcours.sendAndLoad("pderapage.php",demandeParcours,"POST");
- demandeParcours.onLoad = function()
- {
- occurence = -1;
- while(occurence != -2)
- {
- occurence1 = this.allparcours.indexOf("_",occurence);
- occurence2 = this.allparcours.indexOf("_",occurence1 + 1);
- score = this.allparcours.substring(occurence,occurence1);
- if(occurence2 == -1)
- {
- nom = this.allparcours.substring(occurence1 + 1);
- occurence = -2;
- }
- else if(occurence2 == undefined)
- {
- nom = "Echec";
- score = "0";
- occurence = -2;
- }
- else
- {
- nom = this.allparcours.substring(occurence1 + 1,occurence2);
- occurence = occurence2 + 1;
- }
- if(score.substring(0,1) == "#")
- {
- score = score.substring(1);
- coeur = true;
- }
- else
- {
- coeur = false;
- }
- if(score.substring(0,1) == "N")
- {
- score = score.substring(1);
- nouv = true;
- }
- else
- {
- nouv = false;
- }
- parcoursArray[index] = new Array(nom,score,coeur,nouv);
- index += 1;
- }
- initDone = true;
- };
-